import axios from "axios"

const newIntance = axios.create({
    baseURL:import.meta.env.VITE_BASE_URL_API,
    timeout:5000
})

newIntance.interceptors.request.use((req)=>{
    const token = localStorage.token
    if(token){
        req.headers.Authentication = token
    }
    return req
},()=>{})

export default newIntance